third-party-exp-api icon

third-party-exp-api

(0 reviews)

Capital Invest - Submit Withdrawal

Description: This endpoint is used to submit withdrawal from CBOJ to Capital Invest.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
  "customerId": "2000239",
  "capitalInvestId": "26",
  "accountNumber": "4015521",
  "region": "1",
  "parent": "223",
  "amount": "4",
  "currency": "JOD"
}

Content-type: application/json, text/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "ftRef": "FT21039ACBKYYLCH",
        "otpId": "330c2064-7b41-4150-b244-8ac0e5fc0e18",
        "ciRef": "212f8cc1-e464-433b-9e53-585c049a4c2e"
    }
}

Error Response: (400, 403, 404, 405, 406, 415, 500, 501)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "Account Not Linked",
        "englishMessage": "Account Not Linked",
        "backendError": "Account Not Linked",
        "backendCode": "12"
    }
}

Reviews